home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fatted Calf
/
The Fatted Calf.iso
/
Modules
/
BackSpaceModules
/
Source
/
Polyhedra
/
PolyhedraViewWraps.psw
< prev
next >
Wrap
Text File
|
1991-12-15
|
1KB
|
87 lines
defineps colourTriangle(float x1, y1, x2, y2, x3, y3, r, g, b)
r g b setrgbcolor
% 1 0 0 setrgbcolor
% .666 setgray
x1 y1 moveto
x2 y2 lineto
x3 y3 lineto
x1 y1 lineto
fill
1 setgray
x1 y1 moveto
x2 y2 lineto
x3 y3 lineto
x1 y1 lineto
stroke
endps
defineps outlineTriangle(float x1, y1, x2, y2, x3, y3)
1 setgray
x1 y1 moveto
x2 y2 lineto
x3 y3 lineto
x1 y1 lineto
stroke
endps
defineps colourSquare(float x1, y1, x2, y2, x3, y3, x4, y4, r, g, b)
r g b setrgbcolor
% 1 0 0 setrgbcolor
% .666 setgray
x1 y1 moveto
x2 y2 lineto
x3 y3 lineto
x4 y4 lineto
x1 y1 lineto
fill
1 setgray
x1 y1 moveto
x2 y2 lineto
x3 y3 lineto
x4 y4 lineto
x1 y1 lineto
stroke
endps
defineps outlineSquare(float x1, y1, x2, y2, x3, y3, x4, y4)
1 setgray
x1 y1 moveto
x2 y2 lineto
x3 y3 lineto
x4 y4 lineto
x1 y1 lineto
stroke
endps
defineps colourPentagon(float x1, y1, x2, y2, x3, y3, x4, y4, x5, y5, r, g, b)
r g b setrgbcolor
% 1 0 0 setrgbcolor
% .666 setgray
x1 y1 moveto
x2 y2 lineto
x3 y3 lineto
x4 y4 lineto
x5 y5 lineto
x1 y1 lineto
fill
1 setgray
x1 y1 moveto
x2 y2 lineto
x3 y3 lineto
x4 y4 lineto
x5 y5 lineto
x1 y1 lineto
stroke
endps
defineps outlinePentagon(float x1, y1, x2, y2, x3, y3, x4, y4, x5, y5)
1 setgray
x1 y1 moveto
x2 y2 lineto
x3 y3 lineto
x4 y4 lineto
x5 y5 lineto
x1 y1 lineto
stroke
endps